package com.cskaoyan.bean.vo.vxVo;

import com.cskaoyan.bean.param.StaticParam;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/7 16:27
 */
@Data
public class OrderListVO {

    /**
     * orderStatusText : 已收货
     * aftersaleStatus : 1
     * isGroupin : false
     * orderSn : 20220606440561
     * actualPrice : 110
     * goodsList : [{"number":1,"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/vqyjo3n1kwctsuwiyd85.jpeg","price":123,"id":447,"goodsName":"12345","specifications":["为的"]}]
     * id : 336
     * handleOption : {"cancel":false,"delete":true,"pay":false,"comment":true,"confirm":false,"refund":false,"rebuy":true,"aftersale":true}
     */

    private String orderStatusText;
    private Integer orderStatus;
    private Integer aftersaleStatus;
    private Boolean isGroupin;
    private String orderSn;
    private Integer actualPrice;
    private Integer id;
    private HandleOptionBean handleOption;
    private List<OrderListGoodsVO> goodsList;
    //不需要输出的内容
    private Boolean deleted;
    private Integer comment;

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatusText = StaticParam.orderStatusTextMap.get(orderStatus);
        this.orderStatus = orderStatus;
    }

}
